package com.cskaoyan.catmall.service;

import com.cskaoyan.catmall.model.bo.AdminCreateBo;
import com.cskaoyan.catmall.model.bo.AdminDeleteBo;
import com.cskaoyan.catmall.model.bo.AdminListBo;
import com.cskaoyan.catmall.model.bo.AdminUpdateBo;
import com.cskaoyan.catmall.model.vo.admin.AdminCreateVo;
import com.cskaoyan.catmall.model.vo.admin.AdminListVo;
import com.cskaoyan.catmall.model.vo.admin.AdminUpdateVo;

import java.util.List;

public interface AdminService {
    AdminListVo selectAdminList(AdminListBo adminListBo);

    AdminCreateVo addNewAdmin(AdminCreateBo adminCreateBo);

    int deleteAdmin(AdminDeleteBo adminDeleteBo);

    AdminUpdateVo updateAdmin(AdminUpdateBo adminUpdateBo);

    List<String> selectPasswordByName(String username);

    String selectAvatar(String principal);

    String selectRole(String principal);

    List<String> selectPerms(String principal);

    List<Integer> selectAdminByUsername(String username);

    List<String> selectUserPerms(String[] list);

    List<String> selectUserRoles(String[] list);

}
